package org.hotpotmaterial.code.dto;

import java.util.List;
import java.util.Map;

import org.hotpotmaterial.anywhere.common.mvc.rest.basic.ResultDTO;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@JsonInclude(value = Include.NON_NULL)
public class ResultOfElDataDTO extends ResultDTO{
 
  @JsonProperty("pieData")
  @JsonPropertyDescription("pieData")
  @ApiModelProperty(value = "pieData")
  private Map<String, Object> pieData;
  
  @JsonProperty("lineData")
  @JsonPropertyDescription("lineData")
  @ApiModelProperty(value = "lineData")
  private List<Map<String, Object>> lineData;
 
  /**
   * 版本明细
   * @param versionList
   * @return
   */
  public ResultOfElDataDTO personCount(Map<String, Object> pieData, List<Map<String, Object>> lineData) {
    this.pieData = pieData;
    this.lineData = lineData;
    return this;
  }
}
